<template>
  <div class="error-403">
    <n-result
      status="403"
      title="403 禁止访问"
      description="抱歉，您没有访问该页面的权限"
    >
      <template #footer>
        <n-button @click="handleBack">返回上一页</n-button>
      </template>
    </n-result>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const handleBack = () => {
  router.back()
}
</script>

<style lang="scss" scoped>
.error-403 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
</style>
